﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace LabChecker.Models
{
    public class Subject
    {
        public int Id { get; set; }
        [Required]
        public string Name { get; set; }
        public virtual List<Task> Tasks { get; set; }

        public Subject()
        {
            Tasks = new List<Task>();
        }
    }
}